//
//  UserOpinionViewController.m
//  project
//
//  Created by 张振宇 on 15/11/5.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "UserOpinionViewController.h"

@interface UserOpinionViewController ()
@property (nonatomic, strong) UITextField *contentTF;
@property (nonatomic, strong) UITextField *conTF;
@end

@implementation UserOpinionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationController.navigationBar.hidden = NO;
        self.view.backgroundColor = [[UIColor alloc]initWithRed:245/255.0 green:245/255.0 blue:245/255.0 alpha:1];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"完成" style:UIBarButtonItemStylePlain target:self action:@selector(registerUser)];
    self.navigationItem.rightBarButtonItem.tintColor = [UIColor whiteColor];
    
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    
    UILabel *label = [[UILabel alloc]init];
    label.frame = CGRectMake(kWidth / 2 - 20, 30, 40, 20);
    label.text = @"反馈内容";
    label.textColor = [UIColor whiteColor];
    self.navigationItem.titleView = label;
    self.navigationItem.title = @"反馈内容";
    UILabel *contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 80, kWidth -100, 20)];
    contentLabel.text = @"反馈内容";
    [self.view addSubview:contentLabel];
    
    _contentTF = [[UITextField alloc]initWithFrame:CGRectMake(0, 100, kWidth, 80)];
    _contentTF.backgroundColor = [UIColor whiteColor];
    _contentTF.placeholder = @"很需要你的意见";
    [self.view addSubview:_contentTF];
    
    UILabel *conLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 220, kWidth -100, 20)];
    conLabel.text = @"联系方式";
    [self.view addSubview:conLabel];
    
    _conTF = [[UITextField alloc]initWithFrame:CGRectMake(0, 240, kWidth, 40)];
    _conTF.backgroundColor = [UIColor whiteColor];
    _conTF.placeholder = @"电话/邮箱/QQ";
    [self.view addSubview:_conTF];
    
    
    
    // Do any additional setup after loading the view.
}

- (void)registerUser
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
